Repository navigation
chore: merge master into v25-flowstyle - #760
18202781743 merged 32 commits into
Conversation
Separate install destinations for LIBRARY, ARCHIVE and RUNTIME to ensure DLL files are installed to the bin directory on Windows instead of lib. fix: Windows 平台 DLL 安装到 bin 目录 分离 LIBRARY、ARCHIVE 和 RUNTIME 的安装路径,确保 Windows 平台的 DLL 文件安装到 bin 目录而非 lib 目录。
…in#669) * i18n: Translate dtkdeclarative.ts in pt 71% of minimum 10% translated source file: 'dtkdeclarative.ts' on 'pt'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * i18n: Translate dtkdeclarative.ts in ar 100% translated source file: 'dtkdeclarative.ts' on 'ar'. --------- Log:
1. Cancel the highlight panel's horizontal padding with a negative label margin so tick text stays anchored to its tick line 2. Resolve the first and last tick in TipsSlider and derive textHorizontalAlignment from them, so end labels align inward by default 3. Reach the owning TipsSlider through a single property instead of indexing parent.parent.children, which depended on declaration order 4. Drop the now-redundant explicit alignment from the example and docs Log: Tick labels no longer overflow either end of a horizontal slider Influence: Edge tick labels stay inside the slider bounds fix(slider): 修正刻度标签超出滑块范围的问题 1. 用负 margin 抵消高亮面板的水平内边距,使刻度文本紧贴其刻度线 2. 由 TipsSlider 解析首/末刻度并据此推导 textHorizontalAlignment, 两端标签默认向内对齐,使用方无需逐个显式设置 3. 通过单个属性获取所属的 TipsSlider,不再按 parent.parent.children 下标取值,摆脱对声明顺序的依赖 4. 移除示例和文档中因此变得冗余的显式对齐写法 Log: 水平滑块两端的刻度标签不再越出滑块范围 PMS: BUG-305223 Influence: 两端刻度标签保持在滑块范围内 Change-Id: I53dd9644c718df841e8ca0527f92abafc735f168
…pping 1. Show arrow buttons constantly when interactive, grey them out via internal enabled instead of hiding them, so layout height stays fixed 2. Size the viewport by real item height (contentHeight / count) rather than the static style itemHeight, so the last visible item is not clipped 3. Simplify the interactive condition to model.count vs maxVisibleItems 4. Use implicitHeight for the button layout preferred height Log: Fix ArrowListView height fluctuating while scrolling and the last item being clipped when actual item height differs from itemHeight Influence: Lists in menus and ComboBoxes no longer resize during scroll fix(arrowlistview): 修复 ArrowListView 滚动时高度振荡与末项被裁剪 1. 箭头按钮改为占用布局后通过内部 enabled 置灰,避免隐藏按钮改变高度 2. 视口改用真实项高(contentHeight/count)计算,替换静态 itemHeight, 使最后一个可见项不被裁剪 3. interactive 改用 count 与 maxVisibleItems 比较 4. 按钮布局期望高度改用 implicitHeight Log: 修复列表滚动时高度抖动以及实际项高与 itemHeight 不一致时末项被裁剪 PMS: BUG-375249 Influence: 菜单/下拉列表滚动时不再跳动,末项完整显示 Change-Id: I09a7ef250f82eebf20784336301d24789cad99e6
1. Add NoArrowType case to getIconNameByType in SliderHandle.qml (qt6) 2. NoArrowType falls through to default returning empty string 3. Default branch covers future enum values with empty-string return 4. Empty name avoids undefined being assigned to DciIcon.name (QString) 5. Empty name matches C++ name.isEmpty() sentinel to skip DCI drawing 6. Only the Qt6 path is changed; Qt5 Slider.qml has no NoArrowType enum 7. Update SPDX-FileCopyrightText year range to 2022 - 2026 Influence: 1. Open control-center Sound page; no undefined-to-QString warning 2. Verify microphone input-level slider renders with no residual icon 3. Confirm existing handleTypes (Arrow/NoArrowH/NoArrowV) unchanged fix(slider): 在 SliderHandle 中补充 NoArrowType 分支 1. 在 qt6 SliderHandle.qml 的 getIconNameByType 中补充 NoArrowType 分支 2. NoArrowType fall-through 到 default 分支,共享一个空串返回 3. default 分支返回空串,覆盖未来新增枚举值 4. 空串避免 undefined 赋给 DciIcon.name 的 QString 5. 空串与 C++ 侧 name.isEmpty() 跳过 DCI 绘制的哨兵判定保持一致 6. 仅改动 Qt6 路径;Qt5 的 Slider.qml 不存在 NoArrowType 枚举 7. 更新 SPDX-FileCopyrightText 年份范围为 2022 - 2026 Influence: 1. 打开控制中心-声音页,确认不再出现 undefined-to-QString 告警 2. 验证麦克风输入等级反馈滑块渲染正常、无残留图标 3. 确认其他 handleType(Arrow/NoArrowHorizontal/NoArrowVertical)行为不变 PMS: Task-392413
The slot receives winId as quint32 (eventFilter and the DWindowManagerHelper windowMotifWMHintsChanged signal both deliver it truncated to 32 bits), but the identity guard compared it against the full-width WId from QWindow::winId(). On X11 WId is a 32-bit XID so it worked; on Wayland/Qt6.11 WId is a 64-bit pointer (>4GiB), so the guard is always true and the slot returns before fetching Motif functions, leaving motifFunctions at 0 and disabling the minimize/close buttons on DTK client titlebars (e.g. dde-control-center).
Remove the scale-based setSmooth(false) overrides in DQuickDciIconImage so icons fall back to the default smooth=true filtering, eliminating jaggies when the scene is downsampled to lower-DPI outputs. Forward IconLabel's smooth to its internal image. 移除DQuickDciIconImage中基于scale的smooth强制覆盖,恢复默认平滑过滤, 修复混合DPI下场景降采样导致的图标锯齿。IconLabel的smooth转发到内部图像。 Log: 修复混合DPI下图标锯齿,恢复DciIcon平滑渲染 Influence: 所有使用DciIcon/IconLabel的控件在混合DPI下图标平滑渲染;外部可通过smooth属性控制图标过滤。
Bind smooth: control.smooth on every direct DciIcon used by controls, covering indicator/arrow/handle icons (CheckDelegate, ItemDelegate, MenuItem, CheckBox, RadioButton, Switch, ComboBox, ButtonIndicator, SpinBoxIndicator, SliderHandle, ActionButton, IconButton, WindowButton, DialogTitleBar, TitleBar, SearchEdit) so controls consistently honor their public smooth property. IconLabel.smooth already forwards to the internal image. 在所有控件直接使用的DciIcon(指示器/箭头/手柄图标)上绑定 smooth: control.smooth,使控件一致响应公开的smooth属性,修复 control.smooth为false时指示器/箭头仍保持平滑过滤的问题。 Log: 补全控件直接DciIcon的smooth绑定,修复smooth属性不一致 Influence: 所有使用DciIcon指示器/箭头的控件现在能通过control.smooth一致控制图标过滤;混合DPI下图标平滑渲染行为不变。
100% translated source file: 'dtkdeclarative.ts' on 'sv'. Log:
After commit cba9773 removed the background Item's implicitWidth binding to break a binding loop, Popup's implicitWidth started tracking contentImplicitWidth directly. When popupType is Popup.Window, QQuickPopupWindow::implicitWidthChanged() unconditionally adopts popup->implicitWidth(), so search filtering that shrinks the content causes the popup window to jump to a smaller width. Instead of overriding implicitWidth/Height directly or using a ratchet mechanism, give StyledBehindWindowBlur (the Window popupType background) a fixed default implicit size — DS.Style.popup.width/height — matching the approach already used by FloatingPanel for the non-Window popupType. This provides a size floor so content shrinking no longer jumps the popup window smaller, while still allowing growth when content is larger. No binding loop because the values are constants. 修复 Popup 在 Window popupType 下宽度跳变问题 commit cba9773 移除 background Item 的 implicitWidth 绑定以消除绑定环后, Popup 的 implicitWidth 直接随 contentImplicitWidth 变化。当 popupType 为 Popup.Window 时,QQuickPopupWindow::implicitWidthChanged() 无条件采用 popup->implicitWidth(),搜索过滤导致内容减少时窗口宽度跳变。 不再直接覆盖 implicitWidth/Height 或使用棘轮机制,而是给 StyledBehindWindowBlur(Window popupType 的 background)设置固定默认隐式尺寸 —— DS.Style.popup.width/height —— 与 FloatingPanel(非 Window popupType)的 做法一致。这提供了尺寸下限,内容缩减时 popup 不再跳变到极小,内容更大时仍可 增长。值为常量,无绑定环。 PMS: BUG-373823、BUG-373843
Bind implicitWidth/implicitHeight to DS.Style.control.implicitWidth/implicitHeight(control), sizing the popup to the maximum of the background implicit size and the content size (plus padding and insets), consistent with the qt5 Popup. commit cba9773 removed the background Item that carried these bindings to break a binding loop, after which Popup tracked contentImplicitWidth only; commit db82f88 then gave the background a fixed default implicit size (DS.Style.popup.width/height). Since the background implicit size is now a constant, binding the popup's implicit size to DS.Style.control.implicitWidth/Height no longer forms a loop: the background default acts as a size floor, so with popupType Window, content shrinking no longer makes the popup window jump to a smaller size, while content larger than the default still grows it. fix(popup): 恢复 qt6 下 Popup 的隐式尺寸绑定 将 implicitWidth/implicitHeight 绑定到 DS.Style.control.implicitWidth/implicitHeight(control),取 background 隐式尺寸与内容尺寸(加上 padding/insets)的最大值作为 Popup 的隐式尺寸, 与 qt5 版 Popup 保持一致。 commit cba9773 为消除绑定环移除了承载该绑定的 background Item,此后 Popup 仅随 contentImplicitWidth 变化;commit db82f88 随后为 background 设置了固定默认隐式尺寸(DS.Style.popup.width/height)。由于 background 隐式尺寸已是常量,将 Popup 隐式尺寸绑定到 DS.Style.control.implicitWidth/Height 不再形成绑定环:background 默认 值充当尺寸下限,popupType 为 Window 时内容缩减不再使 popup 窗口跳变 变小,内容更大时仍可增长。 PMS: BUG-373823、BUG-373843
1. Change interactive property binding from model.count to itemsView.count 2. The ListView is assigned id itemsView, so model is not a valid reference 3. This fixes the interactive property to correctly enable scrolling when items exceed maxVisibleItems 4. Without this fix, the interactive property would fail to bind correctly, potentially disabling scroll interaction Influence: 1. Test ArrowListView with item count exceeding maxVisibleItems to verify scrolling works 2. Test ArrowListView with item count equal to or less than maxVisibleItems to verify scrolling is disabled 3. Verify the list view displays and scrolls correctly with various item counts 4. Test keyboard and mouse wheel navigation within the list fix: 修正 ArrowListView 中的模型引用 1. 将 interactive 属性绑定从 model.count 改为 itemsView.count 2. ListView 的 id 为 itemsView,因此 model 不是有效的引用 3. 修复了 interactive 属性,使其在项目数超过 maxVisibleItems 时正确启用 滚动 4. 如果不修复,interactive 属性将无法正确绑定,可能导致滚动交互被禁用 Influence: 1. 测试项目数超过 maxVisibleItems 时的 ArrowListView 滚动功能 2. 测试项目数等于或少于 maxVisibleItems 时滚动是否被禁用 3. 验证列表视图在不同项目数量下的显示和滚动是否正常 4. 测试列表中的键盘和鼠标滚轮导航 PMS: BUG-388693
1. Add splitScreenEnabled property to TitleBar and WindowButtonGroup components 2. Implement showSplitMenu and hideSplitMenu methods in DQuickWindowAttached 3. Add platform function bindings for _d_supportSplitMenu, _d_showSplitMenu, and _d_hideSplitMenu 4. Add hover timer (700ms) and hold timer (300ms) to trigger split menu on maximize button 5. Track splitMenuWindowId in DQuickWindowPrivate to manage menu state 6. Handle menu lifecycle on hover, press, release, cancel, visibility and enabled changes 7. Map button geometry to global coordinates for menu positioning Log: Added split screen menu triggered by hovering or long-pressing the maximize button Influence: 1. Test hovering over maximize button for 700ms to show split screen menu 2. Test long-pressing maximize button for 300ms to trigger split menu 3. Verify normal click behavior on maximize button still works when not long-pressed 4. Test menu hides on mouse leave and when splitScreenEnabled is set to false 5. Verify split menu only appears when platform supports _d_supportSplitMenu 6. Test split menu positioning aligns with the maximize button location 7. Verify menu interaction works correctly in embed mode and fullscreen scenarios 8. Test behavior when window is not visible or button is disabled feat: 为标题栏添加分屏菜单 1. 在 TitleBar 和 WindowButtonGroup 组件中添加 splitScreenEnabled 属性 2. 在 DQuickWindowAttached 中实现 showSplitMenu 和 hideSplitMenu 方法 3. 添加 _d_supportSplitMenu、_d_showSplitMenu 和 _d_hideSplitMenu 平台函 数绑定 4. 为最大化按钮添加悬停定时器(700ms)和长按定时器(300ms)以触发分屏 菜单 5. 在 DQuickWindowPrivate 中跟踪 splitMenuWindowId 以管理菜单状态 6. 在悬停、按下、释放、取消、可见性和启用状态变化时处理菜单生命周期 7. 将按钮几何位置映射到全局坐标以定位菜单 Log: 新增通过悬停或长按最大化按钮触发的分屏菜单 Influence: 1. 测试悬停最大化按钮 700ms 后显示分屏菜单 2. 测试长按最大化按钮 300ms 触发分屏菜单 3. 验证非长按时最大化按钮的正常点击行为仍然有效 4. 测试鼠标离开和 splitScreenEnabled 设为 false 时菜单隐藏 5. 验证仅在平台支持 _d_supportSplitMenu 时才显示分屏菜单 6. 测试分屏菜单位置是否与最大化按钮位置对齐 7. 验证嵌入模式和全屏场景下菜单交互正常 8. 测试窗口不可见或按钮禁用时的行为 PMS: BUG-370181
1. Change onTriggered to function(action) syntax in qt6/src/qml/ThemeMenu.qml 2. Fix Qt6 deprecation warning about implicit signal parameter injection 3. Keep consistent with other signal handlers in the repository 4. Update SPDX copyright year to 2026 Influence: 1. Test theme switching (Light/Dark/System) in dde-control-center 2. Verify no deprecation warning in console output 3. Confirm Qt5 build is unaffected by the change fix: 修复 ThemeMenu 信号处理器参数注入弃用警告 1. 修改 qt6/src/qml/ThemeMenu.qml 中 onTriggered 为 function(action) 语法 2. 修复 Qt6 关于信号参数隐式注入的弃用警告 3. 与仓库中其他信号处理器保持风格一致 4. 更新 SPDX 版权年份至 2026 Influence: 1. 在控制中心测试主题切换(浅色/深色/跟随系统) 2. 验证控制台不再输出弃用警告 3. 确认 Qt5 构建不受此改动影响 PMS: TASK-392413
Log: Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1. Size the window popup from the model and the measured delegate height, instead of the content item, which has not been laid out yet when the window is created. 2. Measure the delegate height in ArrowListView by realizing one item while the popup is still closed, and pin the scroll-arrow height so the layout settles in one pass. 3. Keep the style item height only as the viewport that makes that first measurement possible. Log: ComboBox popups appear at their final size instead of being resized after being mapped. Influence: Removes the popup size jump with Window popup type. fix(ComboBox): 弹窗按最终尺寸显示 1. 窗口弹窗改用模型与实测行高计算尺寸,不再使用尚未布局的内容项。 2. ArrowListView 在弹窗关闭时提前实例化一项以量出行高,并固定箭头条高度,使布局一次到位。 3. 样式行高仅作为首次测量所需的引导视口。 Log: 下拉弹窗显示时即为其最终尺寸,不再在显示后改变尺寸。 PMS: BUG-370839 Influence: 修复 Window 类型弹窗的尺寸跳动。
100% translated source file: 'dtkdeclarative.ts' on 'mn'. Multica: DDE-437 Log:
1. Add enableBehindWindowBlur property to DialogWindow with default true 2. Bind StyledBehindWindowBlur visibility to this new property 3. Disable behind window blur in SettingsDialog for better performance 4. Set SettingsDialog background to palette.base instead of transparent 5. Add rounded corner styling to SettingsDialog content background 6. Enable clipping on navigation and content ListViews to prevent overflow 7. Restructure content padding using individual padding properties Log: Added blur control option for dialog windows and improved settings dialog appearance Influence: 1. Test dialog windows with blur enabled/disabled to verify visual effects 2. Verify SettingsDialog displays correctly without blur effect 3. Check rounded corner appearance on settings content background 4. Test navigation list scrolling with clip enabled 5. Verify content list scrolling behavior with clip property 6. Test dialog window on different platforms for blur compatibility 7. Verify padding changes don't break layout on various screen sizes feat: 为 DialogWindow 添加窗口模糊控制 1. 为 DialogWindow 添加 enableBehindWindowBlur 属性,默认值为 true 2. 将 StyledBehindWindowBlur 的可见性绑定到新属性 3. 在 SettingsDialog 中禁用窗口后模糊以提升性能 4. 将 SettingsDialog 背景设置为 palette.base 而非透明 5. 为 SettingsDialog 内容背景添加圆角样式 6. 启用导航和内容 ListView 的裁剪以防止溢出 7. 使用独立的内边距属性重构内容布局 Log: 新增对话框窗口模糊控制选项并改进设置对话框外观 Influence: 1. 测试启用/禁用模糊效果的对话框窗口,验证视觉效果 2. 验证 SettingsDialog 在无模糊效果下的显示是否正确 3. 检查设置内容背景的圆角外观 4. 测试启用裁剪后的导航列表滚动 5. 验证内容列表在裁剪属性下的滚动行为 6. 在不同平台上测试对话框窗口的模糊兼容性 7. 验证内边距更改不会在各种屏幕尺寸下破坏布局 PMS: BUG-378325
1. Store palette changed connection and disconnect it when control changes to avoid stale connections 2. Add null check for palette pointer before connecting to changed signal 3. Defer updateControlTheme via scheduleControlThemeUpdate using queued connection to break binding feedback loops 4. Add m_controlThemeUpdatePending flag to coalesce multiple update requests 5. Add unit tests for deferred/coalesced palette updates, destruction with pending updates, and styled control palette feedback The palette is both an input and output of the color selector, causing binding loops when palette changes triggered immediate writes back to the same palette. Deferring the update to the next event loop iteration allows existing bindings to finish before notifying again. The connection cleanup prevents dangling connections when the control's palette changes. Influence: 1. Test controls with palette bindings to D.ColorSelector (Button, ToolButton, MenuItem) 2. Verify no "Binding loop" warnings appear in console 3. Test theme switching between light and dark modes 4. Test hover, press, checked, disabled states with palette feedback 5. Verify selector destruction while a palette update is pending does not crash 6. Confirm palette updates settle and do not trigger continuous event processing fix: 修复调色板反馈导致的绑定循环 1. 保存调色板 changed 信号连接,在控件切换时断开以避免遗留连接 2. 连接 changed 信号前增加调色板空指针检查 3. 通过 scheduleControlThemeUpdate 使用队列连接延迟 updateControlTheme 以打破绑定反馈循环 4. 添加 m_controlThemeUpdatePending 标志合并多次更新请求 5. 添加延迟/合并调色板更新、销毁时存在待处理更新、以及带样式控件调色板反 馈的单元测试 调色板既是颜色选择器的输入也是输出,当调色板变化立即回写同一调色板时会触 发绑定循环。将更新延迟到下一个事件循环迭代,使已有绑定先完成再通知。连接 清理可避免控件调色板变化时产生悬空连接。 Influence: 1. 测试使用 D.ColorSelector 调色板绑定的控件(Button、ToolButton、 MenuItem) 2. 验证控制台不出现"Binding loop"警告 3. 测试明暗主题切换 4. 测试 hover、按下、选中、禁用状态下的调色板反馈 5. 验证存在待处理调色板更新时销毁选择器不会崩溃 6. 确认调色板更新能稳定下来,不会触发持续的事件处理
1. RhiManager now connects to QSGRenderContext::invalidated (DirectConnection) and destroys the Renderer immediately in destroyRenderer(), rather than waiting until RhiManager's destructor runs during QObject child cleanup. 2. Renderer holds a reference to QSGRenderContext's ShaderManager child; deleting the renderer after that child is gone causes a SIGSEGV in ~Renderer -> ShaderManager::clearCachedRendererData. Handling invalidated matches Qt's QSGRhiLayer pattern. 3. sync(), preprocess(), and render() now bail out when renderer (or m_rhi in preprocess) is null, preventing operations on a destroyed RHI context. 4. context/renderer are initialized to nullptr in the constructor, and destroyRenderer() is reused from both invalidated and ~RhiManager. 5. Added regression test destroyWithBackdropNodeOnRhi, which renders a frame with DQuickBackdropBlitter then destroys the window; it crashed before this fix and exits cleanly after. Log: Fixed exit crash caused by DBackdropBlitter renderer lifecycle Influence: 1. Close windows in existing InWindowBlur demos/apps and confirm no crash on the default RHI rendering path. 2. Run related scenes with the software scene graph backend to confirm the guards preserve behavior when RhiManager is not created. 3. On Qt6, exercise window teardown with OpenGL/Vulkan/D3D/Metal RHI backends, with and without DTK_DISABLE_INWINDOWBLUR. 4. Run the new regression test ut_DQuickInWindowBlur.destroyWithBackdropNodeOnRhi and verify it passes. fix: 在 invalidated 时销毁 backdrop renderer 1. RhiManager 现在以直连连接监听 QSGRenderContext::invalidated,在信号 发出时立即通过 destroyRenderer() 销毁 Renderer,不再等到 RhiManager 析构 (QObject 子对象清理阶段)才执行。 2. Renderer 持有 QSGRenderContext 的 QObject 子对象 ShaderManager 的 引用;在 ShaderManager 销毁后才 delete Renderer,会在 ~Renderer → ShaderManager::clearCachedRendererData 中访问已释放内存并崩溃。Qt 对 QSGRhiLayer 也是同样处理。 3. sync()、preprocess()、render() 在 renderer(preprocess 中还包含 m_rhi)为空时直接返回,避免在已销毁的 RHI context 上继续渲染。 4. 构造函数将 context/renderer 初始化为 nullptr,删除逻辑集中到 destroyRenderer(),析构函数也调用它。 5. 新增回归用例 destroyWithBackdropNodeOnRhi:先通过 DQuickBackdropBlitter 渲染一帧再销毁窗口;修复前会崩溃,修复后可正常 退出。 Log: 修复 DBackdropBlitter 渲染器生命周期导致的退出崩溃 Influence: 1. 运行已有的 InWindowBlur 示例/应用并关闭窗口,确认默认 RHI 渲染路径不 崩溃。 2. 使用软件场景图后端运行相关场景,确认未创建 RhiManager 时保护逻辑不影 响原有行为。 3. 在 Qt6 下分别使用 OpenGL/Vulkan/D3D/Metal RHI 后端测试窗口销毁,并分 别设置/不设置 DTK_DISABLE_INWINDOWBLUR。 4. 运行新增回归用例 ut_DQuickInWindowBlur.destroyWithBackdropNodeOnRhi, 确认通过。 PMS: TASK-397773
1. Handle context-menu right clicks with TapHandler instead of MouseArea. 2. Let TextField provide its native cursor behavior. 3. Resolve the owning window through control.Window.window. Log: Show the native text cursor when hovering over Qt6 text fields Influence: 1. Verify editable Qt6 text fields show an I-beam cursor. 2. Verify read-only text fields retain native cursor behavior. 3. Verify right-click menus in windows within the screen bounds. fix: 使用 TapHandler 保留 Qt6 输入框原生光标 1. 使用 TapHandler 替换 MouseArea 处理右键菜单点击。 2. 由 TextField 自身提供原生鼠标光标行为。 3. 通过 control.Window.window 获取输入框所属窗口。 Log: 鼠标悬停 Qt6 输入框时显示原生文本光标 Influence: 1. 验证可编辑的 Qt6 输入框悬停时显示 I 型光标。 2. 验证只读输入框保持原生鼠标光标行为。 3. 验证屏幕范围内普通窗口的右键菜单正常。 PMS: BUG-380351
1. Add setSource(QUrl()) call when icon name starts with "data:image/" 2. This cancels any pending URL loads in the source property 3. Prevents sourceSize changes from reloading the previous icon and overwriting the base64 image set by updateBase64Image() Log: Fixed base64 icon display being overwritten by previous icon reloads Influence: 1. Test switching from a URL-based icon to a base64 data icon 2. Verify the base64 icon displays correctly after the switch 3. Test that changing sourceSize does not reload the previous icon 4. Verify base64 icons work correctly when no previous icon was set 5. Test rapid switching between URL and base64 icons 6. Confirm that pending URL loads are properly cancelled fix: 设置 base64 图标时取消待处理的 URL 加载 1. 当图标名称以 "data:image/" 开头时添加 setSource(QUrl()) 调用 2. 取消 source 属性中待处理的 URL 加载 3. 防止 sourceSize 变更时重新加载之前的图标,覆盖 updateBase64Image() 设 置的 base64 图像 Log: 修复 base64 图标被之前图标重新加载覆盖的问题 Influence: 1. 测试从 URL 图标切换到 base64 数据图标 2. 验证切换后 base64 图标正确显示 3. 测试更改 sourceSize 不会重新加载之前的图标 4. 验证未设置之前图标时 base64 图标正常工作 5. 测试在 URL 图标和 base64 图标之间快速切换 6. 确认待处理的 URL 加载被正确取消 PMS: TASK-397855
1. Replace anchors.fill with explicit width/height bindings in DialogWindow.qml 2. Remove Layout.fillHeight from contentLoader to avoid forcing dialog expansion 3. Remove Layout.fillWidth and preferredWidth from titleBar loader 4. Set SettingsDialog default height to minimumHeight to prevent circular dependency on content size 5. Bind RowLayout height to available space below title bar instead of filling parent The previous anchoring caused the dialog window to stretch unexpectedly because content heights fed back into the window size calculation. By decoupling the layout from parent fill anchors and setting a fixed default height, the dialog now respects its minimum height and sizes content correctly. Influence: 1. Open settings dialog and verify it opens at minimum height without stretching 2. Resize the dialog window and confirm content adapts properly 3. Verify the title bar renders correctly without the fill width layout properties 4. Test content scrolling within the dialog when content exceeds window height 5. Check that dialogs in different DPI scales render correctly 6. Verify no visual regressions in dialog content margins and padding fix: 调整对话框布局尺寸以防止拉伸问题 1. 在 DialogWindow.qml 中用显式宽高绑定替换 anchors.fill 2. 移除 contentLoader 的 Layout.fillHeight 以避免强制对话框扩展 3. 移除 titleBar loader 的 Layout.fillWidth 和 preferredWidth 4. 将 SettingsDialog 默认高度设为 minimumHeight 以避免对内容尺寸的循环 依赖 5. 将 RowLayout 高度绑定到标题栏下方可用空间而非填充父级 之前的锚定方式导致对话框窗口意外拉伸,因为内容高度反馈到了窗口尺寸计算 中。通过将布局与父级填充锚定解耦并设置固定的默认高度,对话框现在能正确遵 循其最小高度并正确调整内容尺寸。 Influence: 1. 打开设置对话框,验证其以最小高度打开且无拉伸 2. 调整对话框窗口大小,确认内容正确适配 3. 验证标题栏在移除填充宽度布局属性后正常渲染 4. 测试内容超出窗口高度时对话框内的滚动 5. 检查不同 DPI 缩放下对话框渲染是否正确 6. 验证对话框内容边距和内边距无视觉回归 PMS: TASK-398041
1. Wrap the bare qWaitFor() call added by ccb129a in EXPECT_TRUE() 2. Silence GCC -Wunused-result on Qt 6, which breaks the -Werror build 3. Test now fails when the palette binding never settles Log: No user-facing changes Influence: 1. Build the unit-test target in Debug with warnings treated as errors 2. Run unit-test --gtest_filter='ut_ColorSelector.*', expect 4 passed 3. Break the palette binding on purpose to verify the new assert fires fix: 修复颜色选择器单测 qWaitFor 返回值未使用告警 1. 将 ccb129a 引入的裸 qWaitFor() 调用包进 EXPECT_TRUE() 2. 消除 Qt6 上的 GCC -Wunused-result 告警,避免 -Werror 下编译失败 3. 调色板绑定未生效时用例会断言失败,而不是静默通过 Log: 无用户可见变化 Influence: 1. Debug 配置下构建 unit-test 目标,确认无告警、编译通过 2. 运行 unit-test --gtest_filter='ut_ColorSelector.*',预期 4 个用例通过 3. 临时破坏调色板绑定,确认新加的断言能让用例失败 PMS: TASK-397289
QQuickMenu closes on Alt press whenever QKeySequence::mnemonic("&A")
is non-empty. Mnemonics are enabled by default on Linux. The handler
neither checks for a parent menu bar nor waits for the remaining keys
of a shortcut, so an Alt-based screenshot shortcut loses the popup
before the full combination is entered. Qt dev still has this branch;
upstream Qt 5.15.8 QQuickMenu does not.
QWidget QMenu instead consults SH_MenuBar_AltKeyNavigation. Fusion
enables it, while the observed Chameleon environment leaves it disabled.
Mnemonic support and closing menus on Alt are separate policies;
disabling process-wide mnemonics would affect unrelated controls.
Accept Alt press events in the Qt6 menu contentItem FocusScope before
they reach QQuickMenu. Give the scope focus so the handler also runs
when no menu item is selected. This matches QWidget menus with
SH_MenuBar_AltKeyNavigation disabled and preserves other key handling.
Built Qt6 with six parallel jobs and passed git diff --check. Qt Quick
Test against the built module on isolated X11 reported 10 passes,
covering Popup.Item and Popup.Window, selected and unselected menus,
Alt press/release, arrow navigation, Escape, mnemonics and submenus.
Basic Alt tests also passed offscreen; mnemonic and submenu tests after
switching popup types failed there, then passed on X11. Actual system
screenshot shortcuts and Wayland remain unverified.
Qt6 的 QQuickMenu 在 Alt 按下时,只要全局助记键检测结果非空就直接关闭菜单。
Linux 默认启用助记键;该分支不检查父菜单栏,也不等待组合快捷键输入完成,
因此含 Alt 的截图快捷键尚未按完,弹出菜单就已消失。
当前 Qt dev 仍保留该分支,而 Qt 5.15.8 上游 QQuickMenu 没有此逻辑。
QWidget QMenu 根据 SH_MenuBar_AltKeyNavigation 决定是否关闭菜单。
Fusion 启用该策略,会关闭菜单;当前 Chameleon 环境未启用,因此不会关闭。
助记键与 Alt 关闭菜单应分别控制,全局禁用助记键会影响应用中的其他控件。
在 Qt6 Menu 的内容项 FocusScope 中接受 Alt 按下事件,阻止其进入 Qt 关闭分支。
设置 focus=true,覆盖菜单刚打开、尚未选中菜单项时焦点停在内部弹出项的情况。
其他按键继续传递,不修改进程级助记键设置,实现与 QWidget 关闭该导航策略
一致的菜单行为。
验证:6 核 Qt6 构建及差异格式检查通过。使用构建产物在隔离 X11 环境运行
Qt Quick Test,10 项结果全部通过,覆盖两种弹出方式、选中与未选中菜单项、
Alt 按下与释放、方向键、Esc、助记键及子菜单。
offscreen 基础 Alt 测试通过,但切换弹出方式后的助记键和子菜单测试失败,
改用 X11 验证后全部通过。实际系统截图快捷键及 Wayland 尚未验证。
Log: 修复 Qt6 菜单按下 Alt 提前关闭,影响组合快捷键截图的问题
PMS: BUG-355869
Influence: DTK Qt6 默认菜单及子菜单按 Alt 不再关闭;Qt5 不变。
使用自定义 contentItem 的应用需要另行验证。
1. Measure realized visible items and retain their maximum width. 2. Use visible row height and laid-out content to size the list. 3. Keep ComboBox delegate implicit width independent of popup width. 4. Keep the measured row height until the model changes. 5. Remeasure on each show so the popup shrinks after a smaller font. Log: Correct dropdown width measurement and height sizing Influence: Improve dropdown sizing and item visibility. fix(qml): 修正下拉列表尺寸计算 1. 测量已创建的可见项并保留最大宽度。 2. 使用可见项行高和布局后的内容计算列表高度。 3. 移除组合框委托隐式宽度对弹窗宽度的依赖。 4. 保留已测得的行高直到模型变化,避免拖动越界时弹窗高度跳变。 5. 每次显示弹窗时重新测量,字体变小后弹窗能缩回。 Log: 修正下拉列表宽度测量和高度计算 PMS: BUG-377521 Influence: 改善下拉列表尺寸和选项显示。
* feat: add window blur control to DialogWindow 1. Add enableBehindWindowBlur property to DialogWindow with default true 2. Bind StyledBehindWindowBlur visibility to this new property 3. Disable behind window blur in SettingsDialog for better performance 4. Set SettingsDialog background to palette.base instead of transparent 5. Add rounded corner styling to SettingsDialog content background 6. Enable clipping on navigation and content ListViews to prevent overflow 7. Restructure content padding using individual padding properties Log: Added blur control option for dialog windows and improved settings dialog appearance Influence: 1. Test dialog windows with blur enabled/disabled to verify visual effects 2. Verify SettingsDialog displays correctly without blur effect 3. Check rounded corner appearance on settings content background 4. Test navigation list scrolling with clip enabled 5. Verify content list scrolling behavior with clip property 6. Test dialog window on different platforms for blur compatibility 7. Verify padding changes don't break layout on various screen sizes feat: 为 DialogWindow 添加窗口模糊控制 1. 为 DialogWindow 添加 enableBehindWindowBlur 属性,默认值为 true 2. 将 StyledBehindWindowBlur 的可见性绑定到新属性 3. 在 SettingsDialog 中禁用窗口后模糊以提升性能 4. 将 SettingsDialog 背景设置为 palette.base 而非透明 5. 为 SettingsDialog 内容背景添加圆角样式 6. 启用导航和内容 ListView 的裁剪以防止溢出 7. 使用独立的内边距属性重构内容布局 Log: 新增对话框窗口模糊控制选项并改进设置对话框外观 Influence: 1. 测试启用/禁用模糊效果的对话框窗口,验证视觉效果 2. 验证 SettingsDialog 在无模糊效果下的显示是否正确 3. 检查设置内容背景的圆角外观 4. 测试启用裁剪后的导航列表滚动 5. 验证内容列表在裁剪属性下的滚动行为 6. 在不同平台上测试对话框窗口的模糊兼容性 7. 验证内边距更改不会在各种屏幕尺寸下破坏布局 PMS: BUG-378325 Source-commit: 3d00a9d Original-author: Wu JiangYu <wujiangyu@uniontech.com> * fix: prevent palette feedback binding loops 1. Store palette changed connection and disconnect it when control changes to avoid stale connections 2. Add null check for palette pointer before connecting to changed signal 3. Defer updateControlTheme via scheduleControlThemeUpdate using queued connection to break binding feedback loops 4. Add m_controlThemeUpdatePending flag to coalesce multiple update requests 5. Add unit tests for deferred/coalesced palette updates, destruction with pending updates, and styled control palette feedback The palette is both an input and output of the color selector, causing binding loops when palette changes triggered immediate writes back to the same palette. Deferring the update to the next event loop iteration allows existing bindings to finish before notifying again. The connection cleanup prevents dangling connections when the control's palette changes. Influence: 1. Test controls with palette bindings to D.ColorSelector (Button, ToolButton, MenuItem) 2. Verify no "Binding loop" warnings appear in console 3. Test theme switching between light and dark modes 4. Test hover, press, checked, disabled states with palette feedback 5. Verify selector destruction while a palette update is pending does not crash 6. Confirm palette updates settle and do not trigger continuous event processing fix: 修复调色板反馈导致的绑定循环 1. 保存调色板 changed 信号连接,在控件切换时断开以避免遗留连接 2. 连接 changed 信号前增加调色板空指针检查 3. 通过 scheduleControlThemeUpdate 使用队列连接延迟 updateControlTheme 以打破绑定反馈循环 4. 添加 m_controlThemeUpdatePending 标志合并多次更新请求 5. 添加延迟/合并调色板更新、销毁时存在待处理更新、以及带样式控件调色板反 馈的单元测试 调色板既是颜色选择器的输入也是输出,当调色板变化立即回写同一调色板时会触 发绑定循环。将更新延迟到下一个事件循环迭代,使已有绑定先完成再通知。连接 清理可避免控件调色板变化时产生悬空连接。 Influence: 1. 测试使用 D.ColorSelector 调色板绑定的控件(Button、ToolButton、 MenuItem) 2. 验证控制台不出现"Binding loop"警告 3. 测试明暗主题切换 4. 测试 hover、按下、选中、禁用状态下的调色板反馈 5. 验证存在待处理调色板更新时销毁选择器不会崩溃 6. 确认调色板更新能稳定下来,不会触发持续的事件处理 Source-commit: ccb129a Original-author: yeshanshan <yeshanshan@uniontech.com> * chore: New release 6.7.52 Log: Source-commit: d02f5c9 Original-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: delete backdrop renderer on invalidated 1. RhiManager now connects to QSGRenderContext::invalidated (DirectConnection) and destroys the Renderer immediately in destroyRenderer(), rather than waiting until RhiManager's destructor runs during QObject child cleanup. 2. Renderer holds a reference to QSGRenderContext's ShaderManager child; deleting the renderer after that child is gone causes a SIGSEGV in ~Renderer -> ShaderManager::clearCachedRendererData. Handling invalidated matches Qt's QSGRhiLayer pattern. 3. sync(), preprocess(), and render() now bail out when renderer (or m_rhi in preprocess) is null, preventing operations on a destroyed RHI context. 4. context/renderer are initialized to nullptr in the constructor, and destroyRenderer() is reused from both invalidated and ~RhiManager. 5. Added regression test destroyWithBackdropNodeOnRhi, which renders a frame with DQuickBackdropBlitter then destroys the window; it crashed before this fix and exits cleanly after. Log: Fixed exit crash caused by DBackdropBlitter renderer lifecycle Influence: 1. Close windows in existing InWindowBlur demos/apps and confirm no crash on the default RHI rendering path. 2. Run related scenes with the software scene graph backend to confirm the guards preserve behavior when RhiManager is not created. 3. On Qt6, exercise window teardown with OpenGL/Vulkan/D3D/Metal RHI backends, with and without DTK_DISABLE_INWINDOWBLUR. 4. Run the new regression test ut_DQuickInWindowBlur.destroyWithBackdropNodeOnRhi and verify it passes. fix: 在 invalidated 时销毁 backdrop renderer 1. RhiManager 现在以直连连接监听 QSGRenderContext::invalidated,在信号 发出时立即通过 destroyRenderer() 销毁 Renderer,不再等到 RhiManager 析构 (QObject 子对象清理阶段)才执行。 2. Renderer 持有 QSGRenderContext 的 QObject 子对象 ShaderManager 的 引用;在 ShaderManager 销毁后才 delete Renderer,会在 ~Renderer → ShaderManager::clearCachedRendererData 中访问已释放内存并崩溃。Qt 对 QSGRhiLayer 也是同样处理。 3. sync()、preprocess()、render() 在 renderer(preprocess 中还包含 m_rhi)为空时直接返回,避免在已销毁的 RHI context 上继续渲染。 4. 构造函数将 context/renderer 初始化为 nullptr,删除逻辑集中到 destroyRenderer(),析构函数也调用它。 5. 新增回归用例 destroyWithBackdropNodeOnRhi:先通过 DQuickBackdropBlitter 渲染一帧再销毁窗口;修复前会崩溃,修复后可正常 退出。 Log: 修复 DBackdropBlitter 渲染器生命周期导致的退出崩溃 Influence: 1. 运行已有的 InWindowBlur 示例/应用并关闭窗口,确认默认 RHI 渲染路径不 崩溃。 2. 使用软件场景图后端运行相关场景,确认未创建 RhiManager 时保护逻辑不影 响原有行为。 3. 在 Qt6 下分别使用 OpenGL/Vulkan/D3D/Metal RHI 后端测试窗口销毁,并分 别设置/不设置 DTK_DISABLE_INWINDOWBLUR。 4. 运行新增回归用例 ut_DQuickInWindowBlur.destroyWithBackdropNodeOnRhi, 确认通过。 PMS: TASK-397773 Source-commit: 0159003 Original-author: caixiangrong <caixiangrong@uniontech.com> * fix: Preserve Qt6 text field cursor with TapHandler 1. Handle context-menu right clicks with TapHandler instead of MouseArea. 2. Let TextField provide its native cursor behavior. 3. Resolve the owning window through control.Window.window. Log: Show the native text cursor when hovering over Qt6 text fields Influence: 1. Verify editable Qt6 text fields show an I-beam cursor. 2. Verify read-only text fields retain native cursor behavior. 3. Verify right-click menus in windows within the screen bounds. fix: 使用 TapHandler 保留 Qt6 输入框原生光标 1. 使用 TapHandler 替换 MouseArea 处理右键菜单点击。 2. 由 TextField 自身提供原生鼠标光标行为。 3. 通过 control.Window.window 获取输入框所属窗口。 Log: 鼠标悬停 Qt6 输入框时显示原生文本光标 Influence: 1. 验证可编辑的 Qt6 输入框悬停时显示 I 型光标。 2. 验证只读输入框保持原生鼠标光标行为。 3. 验证屏幕范围内普通窗口的右键菜单正常。 PMS: BUG-380351 Source-commit: 4ce893f Original-author: liujiangtao <liujiangtao1@uniontech.com> * fix: cancel pending URL loads when setting base64 icon 1. Add setSource(QUrl()) call when icon name starts with "data:image/" 2. This cancels any pending URL loads in the source property 3. Prevents sourceSize changes from reloading the previous icon and overwriting the base64 image set by updateBase64Image() Log: Fixed base64 icon display being overwritten by previous icon reloads Influence: 1. Test switching from a URL-based icon to a base64 data icon 2. Verify the base64 icon displays correctly after the switch 3. Test that changing sourceSize does not reload the previous icon 4. Verify base64 icons work correctly when no previous icon was set 5. Test rapid switching between URL and base64 icons 6. Confirm that pending URL loads are properly cancelled fix: 设置 base64 图标时取消待处理的 URL 加载 1. 当图标名称以 "data:image/" 开头时添加 setSource(QUrl()) 调用 2. 取消 source 属性中待处理的 URL 加载 3. 防止 sourceSize 变更时重新加载之前的图标,覆盖 updateBase64Image() 设 置的 base64 图像 Log: 修复 base64 图标被之前图标重新加载覆盖的问题 Influence: 1. 测试从 URL 图标切换到 base64 数据图标 2. 验证切换后 base64 图标正确显示 3. 测试更改 sourceSize 不会重新加载之前的图标 4. 验证未设置之前图标时 base64 图标正常工作 5. 测试在 URL 图标和 base64 图标之间快速切换 6. 确认待处理的 URL 加载被正确取消 PMS: TASK-397855 Source-commit: 485c154 Original-author: Wu JiangYu <wujiangyu@uniontech.com> * fix: adjust dialog layout sizing to prevent stretch issues 1. Replace anchors.fill with explicit width/height bindings in DialogWindow.qml 2. Remove Layout.fillHeight from contentLoader to avoid forcing dialog expansion 3. Remove Layout.fillWidth and preferredWidth from titleBar loader 4. Set SettingsDialog default height to minimumHeight to prevent circular dependency on content size 5. Bind RowLayout height to available space below title bar instead of filling parent The previous anchoring caused the dialog window to stretch unexpectedly because content heights fed back into the window size calculation. By decoupling the layout from parent fill anchors and setting a fixed default height, the dialog now respects its minimum height and sizes content correctly. Influence: 1. Open settings dialog and verify it opens at minimum height without stretching 2. Resize the dialog window and confirm content adapts properly 3. Verify the title bar renders correctly without the fill width layout properties 4. Test content scrolling within the dialog when content exceeds window height 5. Check that dialogs in different DPI scales render correctly 6. Verify no visual regressions in dialog content margins and padding fix: 调整对话框布局尺寸以防止拉伸问题 1. 在 DialogWindow.qml 中用显式宽高绑定替换 anchors.fill 2. 移除 contentLoader 的 Layout.fillHeight 以避免强制对话框扩展 3. 移除 titleBar loader 的 Layout.fillWidth 和 preferredWidth 4. 将 SettingsDialog 默认高度设为 minimumHeight 以避免对内容尺寸的循环 依赖 5. 将 RowLayout 高度绑定到标题栏下方可用空间而非填充父级 之前的锚定方式导致对话框窗口意外拉伸,因为内容高度反馈到了窗口尺寸计算 中。通过将布局与父级填充锚定解耦并设置固定的默认高度,对话框现在能正确遵 循其最小高度并正确调整内容尺寸。 Influence: 1. 打开设置对话框,验证其以最小高度打开且无拉伸 2. 调整对话框窗口大小,确认内容正确适配 3. 验证标题栏在移除填充宽度布局属性后正常渲染 4. 测试内容超出窗口高度时对话框内的滚动 5. 检查不同 DPI 缩放下对话框渲染是否正确 6. 验证对话框内容边距和内边距无视觉回归 PMS: TASK-398041 Source-commit: 01d2735 Original-author: Wu JiangYu <wujiangyu@uniontech.com> * fix: silence -Wunused-result in color selector unit test 1. Wrap the bare qWaitFor() call added by ccb129a in EXPECT_TRUE() 2. Silence GCC -Wunused-result on Qt 6, which breaks the -Werror build 3. Test now fails when the palette binding never settles Log: No user-facing changes Influence: 1. Build the unit-test target in Debug with warnings treated as errors 2. Run unit-test --gtest_filter='ut_ColorSelector.*', expect 4 passed 3. Break the palette binding on purpose to verify the new assert fires fix: 修复颜色选择器单测 qWaitFor 返回值未使用告警 1. 将 ccb129a 引入的裸 qWaitFor() 调用包进 EXPECT_TRUE() 2. 消除 Qt6 上的 GCC -Wunused-result 告警,避免 -Werror 下编译失败 3. 调色板绑定未生效时用例会断言失败,而不是静默通过 Log: 无用户可见变化 Influence: 1. Debug 配置下构建 unit-test 目标,确认无告警、编译通过 2. 运行 unit-test --gtest_filter='ut_ColorSelector.*',预期 4 个用例通过 3. 临时破坏调色板绑定,确认新加的断言能让用例失败 PMS: TASK-397289 Source-commit: 81faff2 Original-author: chenyuanbo <chenyuanbo@uniontech.com> * chore: New release 6.7.53 Log: Source-commit: 73eb9e5 Original-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: prevent Qt6 menu from closing on Alt QQuickMenu closes on Alt press whenever QKeySequence::mnemonic("&A") is non-empty. Mnemonics are enabled by default on Linux. The handler neither checks for a parent menu bar nor waits for the remaining keys of a shortcut, so an Alt-based screenshot shortcut loses the popup before the full combination is entered. Qt dev still has this branch; upstream Qt 5.15.8 QQuickMenu does not. QWidget QMenu instead consults SH_MenuBar_AltKeyNavigation. Fusion enables it, while the observed Chameleon environment leaves it disabled. Mnemonic support and closing menus on Alt are separate policies; disabling process-wide mnemonics would affect unrelated controls. Accept Alt press events in the Qt6 menu contentItem FocusScope before they reach QQuickMenu. Give the scope focus so the handler also runs when no menu item is selected. This matches QWidget menus with SH_MenuBar_AltKeyNavigation disabled and preserves other key handling. Built Qt6 with six parallel jobs and passed git diff --check. Qt Quick Test against the built module on isolated X11 reported 10 passes, covering Popup.Item and Popup.Window, selected and unselected menus, Alt press/release, arrow navigation, Escape, mnemonics and submenus. Basic Alt tests also passed offscreen; mnemonic and submenu tests after switching popup types failed there, then passed on X11. Actual system screenshot shortcuts and Wayland remain unverified. Qt6 的 QQuickMenu 在 Alt 按下时,只要全局助记键检测结果非空就直接关闭菜单。 Linux 默认启用助记键;该分支不检查父菜单栏,也不等待组合快捷键输入完成, 因此含 Alt 的截图快捷键尚未按完,弹出菜单就已消失。 当前 Qt dev 仍保留该分支,而 Qt 5.15.8 上游 QQuickMenu 没有此逻辑。 QWidget QMenu 根据 SH_MenuBar_AltKeyNavigation 决定是否关闭菜单。 Fusion 启用该策略,会关闭菜单;当前 Chameleon 环境未启用,因此不会关闭。 助记键与 Alt 关闭菜单应分别控制,全局禁用助记键会影响应用中的其他控件。 在 Qt6 Menu 的内容项 FocusScope 中接受 Alt 按下事件,阻止其进入 Qt 关闭分支。 设置 focus=true,覆盖菜单刚打开、尚未选中菜单项时焦点停在内部弹出项的情况。 其他按键继续传递,不修改进程级助记键设置,实现与 QWidget 关闭该导航策略 一致的菜单行为。 验证:6 核 Qt6 构建及差异格式检查通过。使用构建产物在隔离 X11 环境运行 Qt Quick Test,10 项结果全部通过,覆盖两种弹出方式、选中与未选中菜单项、 Alt 按下与释放、方向键、Esc、助记键及子菜单。 offscreen 基础 Alt 测试通过,但切换弹出方式后的助记键和子菜单测试失败, 改用 X11 验证后全部通过。实际系统截图快捷键及 Wayland 尚未验证。 Log: 修复 Qt6 菜单按下 Alt 提前关闭,影响组合快捷键截图的问题 PMS: BUG-355869 Influence: DTK Qt6 默认菜单及子菜单按 Alt 不再关闭;Qt5 不变。 使用自定义 contentItem 的应用需要另行验证。 Source-commit: 0b5f757 Original-author: yeshanshan <yeshanshan@uniontech.com> * chore: New release 6.7.54 Log: Source-commit: 964437c Original-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(qml): correct dropdown sizing 1. Measure realized visible items and retain their maximum width. 2. Use visible row height and laid-out content to size the list. 3. Keep ComboBox delegate implicit width independent of popup width. 4. Keep the measured row height until the model changes. 5. Remeasure on each show so the popup shrinks after a smaller font. Log: Correct dropdown width measurement and height sizing Influence: Improve dropdown sizing and item visibility. fix(qml): 修正下拉列表尺寸计算 1. 测量已创建的可见项并保留最大宽度。 2. 使用可见项行高和布局后的内容计算列表高度。 3. 移除组合框委托隐式宽度对弹窗宽度的依赖。 4. 保留已测得的行高直到模型变化,避免拖动越界时弹窗高度跳变。 5. 每次显示弹窗时重新测量,字体变小后弹窗能缩回。 Log: 修正下拉列表宽度测量和高度计算 PMS: BUG-377521 Influence: 改善下拉列表尺寸和选项显示。 Source-commit: e233481 Original-author: zhangkun <zhangkun2@uniontech.com> Co-authored-by: zhangkun <zhangkun2@uniontech.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: chenyuanbo <chenyuanbo@uniontech.com> Co-authored-by: Wu JiangYu <wujiangyu@uniontech.com> Co-authored-by: liujiangtao <liujiangtao1@uniontech.com> Co-authored-by: caixiangrong <caixiangrong@uniontech.com>
|
TAG Bot TAG: 6.7.54 |
Reviewer's GuideAPIAdd the public
ImplementationPrevent renderer use after RHI context invalidation and destroy it before its ShaderManager disappears, with a teardown regression test.
Defer and coalesce palette-driven theme updates to prevent feedback binding loops, and disconnect stale palette signals.
Cancel pending URL image loads when switching DQuickIconImage to a base64 image.
Use TapHandler for Qt6 text-field context-menu clicks while preserving native cursor behavior.
Keep Qt6 menus open on Alt by handling the key in a focused content scope.
Measure realized dropdown rows to size ArrowListView and ComboBox content without width feedback, retaining row height until the model changes and remeasuring on show.
UIDisable blur in SettingsDialog and restructure its navigation and content layout with clipping, padding, and a rounded background.
ConfigurationUpdate the Arch package version to 6.7.54 for the merged release.
Record the Debian release changelog entries brought in by the merge.
Advance the project version to 6.7.54.
DocumentationAdd the 6.7.52–6.7.54 release notes, including the fixes and features merged from master.
TestsAdd coverage for deferred palette updates, pending-update destruction, and styled-control palette feedback, and ensure test objects are cleaned up.
Add a Qt6 RHI regression test that renders a backdrop node and then destroys its window.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 6 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="qt6/src/qml/DialogWindow.qml" line_range="94" />
<code_context>
+ property real itemMaxWidth: 0
clip: true
Layout.fillWidth: true
Layout.fillHeight: true
onHeightChanged: if (height > 0 && contentHeight === 0) forceLayout()
- implicitHeight: itemsView.count > 0 ? Math.min(contentHeight, maxVisibleItems * contentHeight / itemsView.count) : 0
</code_context>
<issue_to_address>
**Dialog height feeds back into sizing**
When the content fills `contentLoader` and the dialog is sized from its implicit size, `contentLoader.Layout.fillHeight` lets the layout assign a height that `childrenRect.height` then feeds back into the loader’s preferred height and the window’s implicit height. The dialog stretches or gets an incorrect initial size instead of settling to its content.
Remove `Layout.fillHeight` from `contentLoader` so its preferred height is determined by its content.
Also at `qt6/src/qml/settings/SettingsDialog.qml:34`.
</issue_to_address>
### Comment 2
<location path="qt6/src/qml/ArrowListView.qml" line_range="20" />
<code_context>
+ // Fixed per show: rows realized while scrolling can differ in height.
+ property real _measuredRowHeight: 0
+ readonly property real _rowHeight: _measuredRowHeight > 0 ? _measuredRowHeight : itemHeight
+
// Full height of the list, to size a popup before it is mapped.
</code_context>
<issue_to_address>
**Dropdown shows the wrong number of rows**
When a dropdown uses delegates with different heights, `_measuredRowHeight` records only the first realized row, and `implicitHeight` uses that value to cap the viewport at `maxVisibleItems` rows. When later rows are taller, fewer options fit or a row is clipped; when they are shorter, more options fit than configured.
Calculate the viewport cap using the heights of the rows that need to fit rather than multiplying the first realized row’s height by `maxVisibleItems`.
Also at `qt6/src/qml/ArrowListView.qml:67`, `qt6/src/qml/ArrowListView.qml:110`.
</issue_to_address>
### Comment 3
<location path="qt6/src/qml/ArrowListView.qml" line_range="94" />
<code_context>
+
+ onCountChanged: {
+ itemMaxWidth = 0
+ control._measuredRowHeight = 0
+ refreshContentItemWidth()
+ }
</code_context>
<issue_to_address>
**Popup retains stale item dimensions**
When an existing model row changes size-affecting data without changing the item count while the popup is open, the width and row-height measurements are not refreshed for the changed row, and `refreshContentItemWidth()` can also seed its scan with the previous maximum. The popup therefore stays too narrow or wide, or uses a stale row height and sizes the list incorrectly.
Invalidate and recompute the width and row-height measurements when existing row data changes.
Also at `qt6/src/qml/ArrowListView.qml:20`, `qt6/src/qml/ArrowListView.qml:103`, `qt6/src/qml/ArrowListView.qml:114-115`.
</issue_to_address>
### Comment 4
<location path="qt6/src/qml/ArrowListView.qml" line_range="89" />
<code_context>
- onCountChanged: refreshContentItemWidth()
+ Connections {
+ target: itemsView.contentItem
+ function onChildrenChanged() { Qt.callLater(itemsView.refreshContentItemWidth) }
+ }
+
</code_context>
<issue_to_address>
**Large models stall while scrolling**
When a very large model causes delegate creation or removal during scrolling, each `contentItem.childrenChanged` event schedules `refreshContentItemWidth()`, which scans every model index even though most rows in a virtualized list are not instantiated. Scrolling through a very large model therefore repeats a full-model scan as delegates are created or removed, causing visible UI stalls.
Recompute width from realized delegates only, or otherwise avoid a full `count` scan for each children change.
</issue_to_address>
### Comment 5
<location path="qt6/src/qml/ArrowListView.qml" line_range="98" />
<code_context>
+ refreshContentItemWidth()
+ }
+
+ onContentHeightChanged: if (control._measuredRowHeight <= 0) refreshContentItemWidth()
+
onWidthChanged: refreshContentItemWidth()
</code_context>
<issue_to_address>
**Font changes leave popup height stale**
When the font or style changes while a menu or dropdown is open, a font or style change alters delegate heights while the popup is open, but `onContentHeightChanged` skips `refreshContentItemWidth()` once `_measuredRowHeight` is set. The viewport continues sizing from the old measurement, so rows are clipped or the popup has excess space until it is hidden and shown again.
Invalidate and recompute the row-height measurement when delegate geometry changes, including font and style updates.
</issue_to_address>
### Comment 6
<location path="qt6/src/qml/ArrowListView.qml" line_range="67" />
<code_context>
- return maxWidth
- }
- interactive: itemsView.count > maxVisibleItems
+ implicitHeight: itemsView.count > 0 ? Math.min(contentHeight, maxVisibleItems * control._rowHeight) : 0
+ implicitWidth: itemMaxWidth
+ interactive: itemsView.contentHeight > itemsView.height
</code_context>
<issue_to_address>
**Arrow scrolling cuts through rows**
When a dropdown's realized row height differs from the style `itemHeight`, `_rowHeight` lets the viewport use a measured row height, but the arrow buttons still scroll by `control.itemHeight`. When delegate rows are taller or shorter than that style value, each button click moves by the wrong amount and can leave the list positioned partway through an option.
Use the measured row height for the arrow-button step size, or otherwise ensure each arrow action advances by a whole displayed row.
</issue_to_address>| Item { | ||
| id: contentLoader | ||
| Layout.fillWidth: true | ||
| Layout.fillHeight: true |
There was a problem hiding this comment.
🟡 Medium · Dialog height feeds back into sizing
When the content fills contentLoader and the dialog is sized from its implicit size, contentLoader.Layout.fillHeight lets the layout assign a height that childrenRect.height then feeds back into the loader’s preferred height and the window’s implicit height. The dialog stretches or gets an incorrect initial size instead of settling to its content.
Remove Layout.fillHeight from contentLoader so its preferred height is determined by its content.
Also at qt6/src/qml/settings/SettingsDialog.qml:34.
Prompt for AI agents
In `qt6/src/qml/DialogWindow.qml` at line 94:
**Dialog height feeds back into sizing**
When the content fills `contentLoader` and the dialog is sized from its implicit size, `contentLoader.Layout.fillHeight` lets the layout assign a height that `childrenRect.height` then feeds back into the loader’s preferred height and the window’s implicit height. The dialog stretches or gets an incorrect initial size instead of settling to its content.
Remove `Layout.fillHeight` from `contentLoader` so its preferred height is determined by its content.
Also at `qt6/src/qml/settings/SettingsDialog.qml:34`.|
|
||
| // Fixed per show: rows realized while scrolling can differ in height. | ||
| property real _measuredRowHeight: 0 | ||
| readonly property real _rowHeight: _measuredRowHeight > 0 ? _measuredRowHeight : itemHeight |
There was a problem hiding this comment.
🟡 Medium · Dropdown shows the wrong number of rows
When a dropdown uses delegates with different heights, _measuredRowHeight records only the first realized row, and implicitHeight uses that value to cap the viewport at maxVisibleItems rows. When later rows are taller, fewer options fit or a row is clipped; when they are shorter, more options fit than configured.
Calculate the viewport cap using the heights of the rows that need to fit rather than multiplying the first realized row’s height by maxVisibleItems.
Also at qt6/src/qml/ArrowListView.qml:67, qt6/src/qml/ArrowListView.qml:110.
Prompt for AI agents
In `qt6/src/qml/ArrowListView.qml` at line 20:
**Dropdown shows the wrong number of rows**
When a dropdown uses delegates with different heights, `_measuredRowHeight` records only the first realized row, and `implicitHeight` uses that value to cap the viewport at `maxVisibleItems` rows. When later rows are taller, fewer options fit or a row is clipped; when they are shorter, more options fit than configured.
Calculate the viewport cap using the heights of the rows that need to fit rather than multiplying the first realized row’s height by `maxVisibleItems`.
Also at `qt6/src/qml/ArrowListView.qml:67`, `qt6/src/qml/ArrowListView.qml:110`.|
|
||
| onCountChanged: { | ||
| itemMaxWidth = 0 | ||
| control._measuredRowHeight = 0 |
There was a problem hiding this comment.
🟡 Medium · Popup retains stale item dimensions
When an existing model row changes size-affecting data without changing the item count while the popup is open, the width and row-height measurements are not refreshed for the changed row, and refreshContentItemWidth() can also seed its scan with the previous maximum. The popup therefore stays too narrow or wide, or uses a stale row height and sizes the list incorrectly.
Invalidate and recompute the width and row-height measurements when existing row data changes.
Also at qt6/src/qml/ArrowListView.qml:20, qt6/src/qml/ArrowListView.qml:103, qt6/src/qml/ArrowListView.qml:114-115.
Prompt for AI agents
In `qt6/src/qml/ArrowListView.qml` at line 94:
**Popup retains stale item dimensions**
When an existing model row changes size-affecting data without changing the item count while the popup is open, the width and row-height measurements are not refreshed for the changed row, and `refreshContentItemWidth()` can also seed its scan with the previous maximum. The popup therefore stays too narrow or wide, or uses a stale row height and sizes the list incorrectly.
Invalidate and recompute the width and row-height measurements when existing row data changes.
Also at `qt6/src/qml/ArrowListView.qml:20`, `qt6/src/qml/ArrowListView.qml:103`, `qt6/src/qml/ArrowListView.qml:114-115`.| onCountChanged: refreshContentItemWidth() | ||
| Connections { | ||
| target: itemsView.contentItem | ||
| function onChildrenChanged() { Qt.callLater(itemsView.refreshContentItemWidth) } |
There was a problem hiding this comment.
🟡 Medium · Large models stall while scrolling
When a very large model causes delegate creation or removal during scrolling, each contentItem.childrenChanged event schedules refreshContentItemWidth(), which scans every model index even though most rows in a virtualized list are not instantiated. Scrolling through a very large model therefore repeats a full-model scan as delegates are created or removed, causing visible UI stalls.
Recompute width from realized delegates only, or otherwise avoid a full count scan for each children change.
Prompt for AI agents
In `qt6/src/qml/ArrowListView.qml` at line 89:
**Large models stall while scrolling**
When a very large model causes delegate creation or removal during scrolling, each `contentItem.childrenChanged` event schedules `refreshContentItemWidth()`, which scans every model index even though most rows in a virtualized list are not instantiated. Scrolling through a very large model therefore repeats a full-model scan as delegates are created or removed, causing visible UI stalls.
Recompute width from realized delegates only, or otherwise avoid a full `count` scan for each children change.| refreshContentItemWidth() | ||
| } | ||
|
|
||
| onContentHeightChanged: if (control._measuredRowHeight <= 0) refreshContentItemWidth() |
There was a problem hiding this comment.
🟡 Medium · Font changes leave popup height stale
When the font or style changes while a menu or dropdown is open, a font or style change alters delegate heights while the popup is open, but onContentHeightChanged skips refreshContentItemWidth() once _measuredRowHeight is set. The viewport continues sizing from the old measurement, so rows are clipped or the popup has excess space until it is hidden and shown again.
Invalidate and recompute the row-height measurement when delegate geometry changes, including font and style updates.
Prompt for AI agents
In `qt6/src/qml/ArrowListView.qml` at line 98:
**Font changes leave popup height stale**
When the font or style changes while a menu or dropdown is open, a font or style change alters delegate heights while the popup is open, but `onContentHeightChanged` skips `refreshContentItemWidth()` once `_measuredRowHeight` is set. The viewport continues sizing from the old measurement, so rows are clipped or the popup has excess space until it is hidden and shown again.
Invalidate and recompute the row-height measurement when delegate geometry changes, including font and style updates.| return maxWidth | ||
| } | ||
| interactive: itemsView.count > maxVisibleItems | ||
| implicitHeight: itemsView.count > 0 ? Math.min(contentHeight, maxVisibleItems * control._rowHeight) : 0 |
There was a problem hiding this comment.
🟡 Medium · Arrow scrolling cuts through rows
When a dropdown's realized row height differs from the style itemHeight, _rowHeight lets the viewport use a measured row height, but the arrow buttons still scroll by control.itemHeight. When delegate rows are taller or shorter than that style value, each button click moves by the wrong amount and can leave the list positioned partway through an option.
Use the measured row height for the arrow-button step size, or otherwise ensure each arrow action advances by a whole displayed row.
Prompt for AI agents
In `qt6/src/qml/ArrowListView.qml` at line 67:
**Arrow scrolling cuts through rows**
When a dropdown's realized row height differs from the style `itemHeight`, `_rowHeight` lets the viewport use a measured row height, but the arrow buttons still scroll by `control.itemHeight`. When delegate rows are taller or shorter than that style value, each button click moves by the wrong amount and can leave the list positioned partway through an option.
Use the measured row height for the arrow-button step size, or otherwise ensure each arrow action advances by a whole displayed row.|
/forcemerge |
|
This pr force merged! (status: unstable) |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
b28afb6
into
linuxdeepin:v25-flowstyle
同步上次 PR #727 的 master 基线
43251192到e2334814之间的 12 个提交,版本更新至 6.7.54。合并以功能分支97382243为第一父提交,保留下拉列表的 FlowStyle 箭头、间距和 SpinBox 指示器样式。验证
Qt 6.8 构建成功,9 项定向 GTest 通过。补充的 ComboBox 高度测试在本次构建和 master 的已有构建上均有相同的 5 项用例失败,涉及隐藏行和弹窗首次打开高度。未运行全量测试。
提交记录
下方按时间列出本轮新增的原始提交说明和作者。如使用 Squash and merge,请在最终提交说明中保留以下记录。要让后续同步也能识别 master 的祖先关系,需要保留本 PR 的双亲合并提交。
overflow
Log: Added blur control option for dialog windows and improved settings
dialog appearance
Influence:
effects
feat: 为 DialogWindow 添加窗口模糊控制
Log: 新增对话框窗口模糊控制选项并改进设置对话框外观
Influence:
PMS: BUG-378325
Source-commit: 3d00a9d
Original-author: Wu JiangYu wujiangyu@uniontech.com
changes to avoid stale connections
signal
connection to break binding feedback loops
requests
with pending updates, and styled control palette feedback
The palette is both an input and output of the color selector, causing
binding loops when palette changes triggered immediate writes back
to the same palette. Deferring the update to the next event loop
iteration allows existing bindings to finish before notifying again.
The connection cleanup prevents dangling connections when the control's
palette changes.
Influence:
ToolButton, MenuItem)
not crash
processing
fix: 修复调色板反馈导致的绑定循环
以打破绑定反馈循环
馈的单元测试
调色板既是颜色选择器的输入也是输出,当调色板变化立即回写同一调色板时会触
发绑定循环。将更新延迟到下一个事件循环迭代,使已有绑定先完成再通知。连接
清理可避免控件调色板变化时产生悬空连接。
Influence:
MenuItem)
Source-commit: ccb129a
Original-author: yeshanshan yeshanshan@uniontech.com
Log:
Source-commit: d02f5c9
Original-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(DirectConnection) and destroys the Renderer immediately in
destroyRenderer(), rather than waiting until RhiManager's destructor
runs during QObject child cleanup.
child; deleting the renderer after that child is gone causes a SIGSEGV
in ~Renderer -> ShaderManager::clearCachedRendererData. Handling
invalidated matches Qt's QSGRhiLayer pattern.
m_rhi in preprocess) is null, preventing operations on a destroyed RHI
context.
destroyRenderer() is reused from both invalidated and ~RhiManager.
frame with DQuickBackdropBlitter then destroys the window; it crashed
before this fix and exits cleanly after.
Log: Fixed exit crash caused by DBackdropBlitter renderer lifecycle
Influence:
crash on the default RHI rendering path.
the guards preserve behavior when RhiManager is not created.
backends, with and without DTK_DISABLE_INWINDOWBLUR.
ut_DQuickInWindowBlur.destroyWithBackdropNodeOnRhi and verify it passes.
fix: 在 invalidated 时销毁 backdrop renderer
发出时立即通过 destroyRenderer() 销毁 Renderer,不再等到 RhiManager 析构
(QObject 子对象清理阶段)才执行。
引用;在 ShaderManager 销毁后才 delete Renderer,会在 ~Renderer →
ShaderManager::clearCachedRendererData 中访问已释放内存并崩溃。Qt 对
QSGRhiLayer 也是同样处理。
m_rhi)为空时直接返回,避免在已销毁的 RHI context 上继续渲染。
destroyRenderer(),析构函数也调用它。
DQuickBackdropBlitter 渲染一帧再销毁窗口;修复前会崩溃,修复后可正常
退出。
Log: 修复 DBackdropBlitter 渲染器生命周期导致的退出崩溃
Influence:
崩溃。
响原有行为。
别设置/不设置 DTK_DISABLE_INWINDOWBLUR。
确认通过。
PMS: TASK-397773
Source-commit: 0159003
Original-author: caixiangrong caixiangrong@uniontech.com
Log: Show the native text cursor when hovering over Qt6 text fields
Influence:
fix: 使用 TapHandler 保留 Qt6 输入框原生光标
Log: 鼠标悬停 Qt6 输入框时显示原生文本光标
Influence:
PMS: BUG-380351
Source-commit: 4ce893f
Original-author: liujiangtao liujiangtao1@uniontech.com
overwriting the base64 image set by updateBase64Image()
Log: Fixed base64 icon display being overwritten by previous icon
reloads
Influence:
fix: 设置 base64 图标时取消待处理的 URL 加载
置的 base64 图像
Log: 修复 base64 图标被之前图标重新加载覆盖的问题
Influence:
PMS: TASK-397855
Source-commit: 485c154
Original-author: Wu JiangYu wujiangyu@uniontech.com
DialogWindow.qml
expansion
circular dependency on content size
filling parent
The previous anchoring caused the dialog window to stretch unexpectedly
because content heights fed back into the window size calculation.
By decoupling the layout from parent fill anchors and setting a fixed
default height, the dialog now respects its minimum height and sizes
content correctly.
Influence:
stretching
properties
height
fix: 调整对话框布局尺寸以防止拉伸问题
依赖
之前的锚定方式导致对话框窗口意外拉伸,因为内容高度反馈到了窗口尺寸计算
中。通过将布局与父级填充锚定解耦并设置固定的默认高度,对话框现在能正确遵
循其最小高度并正确调整内容尺寸。
Influence:
PMS: TASK-398041
Source-commit: 01d2735
Original-author: Wu JiangYu wujiangyu@uniontech.com
Log: No user-facing changes
Influence:
fix: 修复颜色选择器单测 qWaitFor 返回值未使用告警
Log: 无用户可见变化
Influence:
PMS: TASK-397289
Source-commit: 81faff2
Original-author: chenyuanbo chenyuanbo@uniontech.com
Log:
Source-commit: 73eb9e5
Original-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
QQuickMenu closes on Alt press whenever QKeySequence::mnemonic("&A")
is non-empty. Mnemonics are enabled by default on Linux. The handler
neither checks for a parent menu bar nor waits for the remaining keys
of a shortcut, so an Alt-based screenshot shortcut loses the popup
before the full combination is entered. Qt dev still has this branch;
upstream Qt 5.15.8 QQuickMenu does not.
QWidget QMenu instead consults SH_MenuBar_AltKeyNavigation. Fusion
enables it, while the observed Chameleon environment leaves it disabled.
Mnemonic support and closing menus on Alt are separate policies;
disabling process-wide mnemonics would affect unrelated controls.
Accept Alt press events in the Qt6 menu contentItem FocusScope before
they reach QQuickMenu. Give the scope focus so the handler also runs
when no menu item is selected. This matches QWidget menus with
SH_MenuBar_AltKeyNavigation disabled and preserves other key handling.
Built Qt6 with six parallel jobs and passed git diff --check. Qt Quick
Test against the built module on isolated X11 reported 10 passes,
covering Popup.Item and Popup.Window, selected and unselected menus,
Alt press/release, arrow navigation, Escape, mnemonics and submenus.
Basic Alt tests also passed offscreen; mnemonic and submenu tests after
switching popup types failed there, then passed on X11. Actual system
screenshot shortcuts and Wayland remain unverified.
Qt6 的 QQuickMenu 在 Alt 按下时,只要全局助记键检测结果非空就直接关闭菜单。
Linux 默认启用助记键;该分支不检查父菜单栏,也不等待组合快捷键输入完成,
因此含 Alt 的截图快捷键尚未按完,弹出菜单就已消失。
当前 Qt dev 仍保留该分支,而 Qt 5.15.8 上游 QQuickMenu 没有此逻辑。
QWidget QMenu 根据 SH_MenuBar_AltKeyNavigation 决定是否关闭菜单。
Fusion 启用该策略,会关闭菜单;当前 Chameleon 环境未启用,因此不会关闭。
助记键与 Alt 关闭菜单应分别控制,全局禁用助记键会影响应用中的其他控件。
在 Qt6 Menu 的内容项 FocusScope 中接受 Alt 按下事件,阻止其进入 Qt 关闭分支。
设置 focus=true,覆盖菜单刚打开、尚未选中菜单项时焦点停在内部弹出项的情况。
其他按键继续传递,不修改进程级助记键设置,实现与 QWidget 关闭该导航策略
一致的菜单行为。
验证:6 核 Qt6 构建及差异格式检查通过。使用构建产物在隔离 X11 环境运行
Qt Quick Test,10 项结果全部通过,覆盖两种弹出方式、选中与未选中菜单项、
Alt 按下与释放、方向键、Esc、助记键及子菜单。
offscreen 基础 Alt 测试通过,但切换弹出方式后的助记键和子菜单测试失败,
改用 X11 验证后全部通过。实际系统截图快捷键及 Wayland 尚未验证。
Log: 修复 Qt6 菜单按下 Alt 提前关闭,影响组合快捷键截图的问题
PMS: BUG-355869
Influence: DTK Qt6 默认菜单及子菜单按 Alt 不再关闭;Qt5 不变。
使用自定义 contentItem 的应用需要另行验证。
Source-commit: 0b5f757
Original-author: yeshanshan yeshanshan@uniontech.com
Log:
Source-commit: 964437c
Original-author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Log: Correct dropdown width measurement and height sizing
Influence: Improve dropdown sizing and item visibility.
fix(qml): 修正下拉列表尺寸计算
Log: 修正下拉列表宽度测量和高度计算
PMS: BUG-377521
Influence: 改善下拉列表尺寸和选项显示。
Source-commit: e233481
Original-author: zhangkun zhangkun2@uniontech.com
Summary by Sourcery
Synchronize the master baseline into the FlowStyle branch while preserving FlowStyle dropdown visuals and incorporating the 6.7.54 fixes and release updates.
New Features:
Bug Fixes:
Build:
Tests: